@mixin box-wrapper {
  background-color: var(--content-bg-color);
  border-radius: 10px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;

  >.title {
    height: 36px;
    line-height: 36px;
    font-weight: 700;
    font-size: 1.3em;
    text-shadow: var(--base-text-shadow);
    margin-bottom: 20px;
  }

  >.list {
    min-height: 200px;
    padding-right: 20px;
  }

  >.list>.list-item {
    padding: 10px;
    background-color: var(--box-bg-color);
    border-radius: 8px;
    border: 1px solid var(--base-border-color);
    font-size: 14px;
    box-shadow: var(--base-box-shadow);
    position: relative;
    cursor: pointer;

    p.text {
      font-size: 1.3em;
    }

    p.total:last-of-type {
      font-weight: bolder;

      .num {
        padding-right: 8px;
      }
    }

    &:hover {
      box-shadow: var(--base-box-shadow);
    }

    &.active {
      &:before {
        content: '';
        position: absolute;
        left: -4px;
        top: -4px;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background-color: var(--success-color);
      }

      :after {
        content: '';
        position: absolute;
        top: 2px;
        left: 6px;
        width: 6px;
        height: 12px;
        border-style: solid;
        border-width: 0 4px 4px 0;
        border-color: #fff;
        transform: rotate(45deg);
      }
    }
  }
}

.dictation-wrapper > .content-wrapper {
  > .level-box {
    @include box-wrapper;
    margin-right: 16px;

    .list-item {
      width: 210px;
      height: 120px;
      display: flex;
      align-items: center;

      img {
        width: 80px;
        height: 100px;
      }

      div.info {
        height: 100%;
        margin-left: 10px;
        display: flex;
        flex-direction: column;
        justify-content:space-between;
        padding: 20px 0;
      }
    }
  }

  >.chapter-box {
    @include box-wrapper;

    >.list .list-item {
      width: 140px;
      height: 80px;
      overflow: hidden;
      padding: 15px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;

      .progress-bar {
        position: absolute;
        width: 0;
        height: 10px;
        bottom: 0;
        left: 0;
        

        .progress-inner-bar {
          height: 100%;
          border-radius: 0 4px 4px 0;
          background-color: var(--primary-color-light-6);
          animation: progressBar 1.5s;
        }
      }
    }
  }
}

@keyframes progressBar {
  0%{width: 0%}
  100% {width: 100%}
}